﻿<UserControl xmlns:my="clr-namespace:WyoCode.WyoApp_VSTools"  x:Class="WyoCode.WyoApp_VSTools.WCFManager.WCFRoot"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="1000">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>


        <Grid Margin="4">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Label Content="Entity Context:" Grid.Row="1" Grid.Column="0" />
            <ComboBox Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" x:Name="ECList" DisplayMemberPath="FileName" />

            <Label Content="Silverlight Project:" Grid.Row="0" Grid.Column="0" />
            <ComboBox Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" x:Name="SLList" DisplayMemberPath="ProjectName" />


        </Grid>


        <Grid Margin="4" Grid.Column="1" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="250" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <ListBox x:Name="EdmxList" Grid.RowSpan="10" />
            <Button Grid.Column="1" Margin="2" Click="AddSecurityToEntity" >Save Security</Button>

            <Grid Grid.Column="1" Grid.Row="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal" >
                    <TextBox x:Name="AddGroupTBAll" Width="120" Margin="2" />
                    <Button Click="AddGroupAll" Margin="2" >Add</Button>
                    <Button Click="DelGroupAll" Margin="2" >Delete</Button>
                    <TextBlock VerticalAlignment="Center" Margin="2">All</TextBlock>
                </StackPanel>
                <ListBox Grid.Row="1" x:Name="AllListBox" Height="120" Margin="2" />
            </Grid>

            <Grid Grid.Column="1" Grid.Row="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal" >
                    <TextBox x:Name="AddGroupTBRead" Width="120" Margin="2" />
                    <Button Click="AddGroupRead" Margin="2" >Add</Button>
                    <Button Click="DelGroupRead" Margin="2" >Delete</Button>
                    <TextBlock VerticalAlignment="Center" Margin="2">Read</TextBlock>
                </StackPanel>
                <ListBox Grid.Row="1" x:Name="ReadListBox" Height="120" Margin="2" />
            </Grid>

            <Grid Grid.Column="1" Grid.Row="3">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal" >
                    <TextBox x:Name="AddGroupTBWrite" Width="120" Margin="2" />
                    <Button Click="AddGroupWrite" Margin="2" >Add</Button>
                    <Button Click="DelGroupWrite" Margin="2" >Delete</Button>
                    <TextBlock VerticalAlignment="Center" Margin="2">Write</TextBlock>
                </StackPanel>
                <ListBox Grid.Row="1" x:Name="WriteListBox" Height="120" Margin="2" />
            </Grid>



            <Grid Grid.Column="1" Grid.Row="4">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal" >
                    <TextBox x:Name="AddGroupTBDelete" Width="120" Margin="2" />
                    <Button Click="AddGroupDelete" Margin="2" >Add</Button>
                    <Button Click="DelGroupDelete" Margin="2" >Delete</Button>
                    <TextBlock VerticalAlignment="Center" Margin="2">Delete</TextBlock>
                </StackPanel>
                <ListBox Grid.Row="1" x:Name="DeleteListBox" Height="120" Margin="2" />
            </Grid>


        </Grid>


        <Button x:Name="GenButton" Grid.Row="1" Content="Generate" Width="180" Click="GenerateClick" />

    </Grid>
</UserControl>
